//
//  WiFiModelManager.m
//  DTSampleLight
//
//  Created by ZhangYeKun on 2017/3/28.
//  Copyright © 2017年 Fidetro. All rights reserved.
//

#import "WiFiModelManager.h"

@implementation WiFiModelManager

+ (ResponseModel *)initResponseWithReceiveParams:(NSDictionary *)params{
    
    NSString *backCode = params[@"backCode"];
    NSString *backContent = params[@"backContent"];
    NSString *macAddress = params[@"macAddress"];
    switch ([backCode integerValue]) {
        case 1801:
        {
            DT1801Model *model = [[DT1801Model alloc]initWithHexadecimalBackContent:backContent propertyBytes:@[@"2",@"4",@"2",@"8",@"2",@"2",@"2",@"2",@"2",@"2",@"2"]];
            [model setMacAddress:macAddress];
            return model;
            break;
        }
//        case 1802:
//        {
//            DT1802Model *model = [[DT1802Model alloc]initWithHexadecimalBackContent:backContent propertyBytes:@[@"2",@"2",@"2",@"2",@"2",@"2"]];
//            [model setMacAddress:macAddress];
//            return model;
//        }
//        case 1803:
//        {
//            DT1803Model *model = [[DT1803Model alloc]initWithHexadecimalBackContent:backContent propertyBytes:@[@"2",@"2",@"2",@"2",@"2",@"2"]];
//            [model setMacAddress:macAddress];
//            return model;
//        }
        default:
            break;
    }
    return nil;
}
@end
